<?php
/*
 * @Author: lokei
 * @Date: 2022-11-05 21:45:10
 * @LastEditors: lokei
 * @LastEditTime: 2023-01-14 23:09:15
 * @Description: 
 */
$router->group(['prefix' => env('ROUTER_PREFIX') . 'api'], function () use ($router) {

	$router->group(['prefix' => 'travel/line'], function () use ($router) {
		// 线路
		$router->get('list', [
			'as' => 'listLine', 'uses' => '\App\Http\Controllers\Chuxing\LineController@list'
		]);
		$router->post('create', [
			'as' => 'createLine', 'uses' => '\App\Http\Controllers\Chuxing\LineController@create'
		]);
		$router->post('update', [
			'as' => 'updateLine', 'uses' => '\App\Http\Controllers\Chuxing\LineController@update'
		]);
		$router->post('delete', [
			'as' => 'deleteLine', 'uses' => '\App\Http\Controllers\Chuxing\LineController@delete'
		]);

    });

	$router->group(['prefix' => 'passenger'], function () use ($router) {
		// 线路
		$router->get('get', [
			'as' => 'getPassenger', 'uses' => '\App\Http\Controllers\Chuxing\PassengerController@get'
		]);
    });

});